class Teacher < ActiveRecord::Base
  ACADEMIC_UNITS  = { 'ai' => 'Adminitrativa e informática',
                      'mi' => 'Mecatronica e industrial',
                      'ac' => 'Ambiental y civil'}
  
  DEDICATIONS     = { 'tc' => 'Tiempo completo',
                      'tp' => 'Tiempo parcial'}

  ID_CARD_TYPES   = { 'cc' => 'Cédula de ciudadania',
                      'ce' => 'Cédula de extrangeria'}

  def self.academic_units
    ACADEMIC_UNITS.collect{|au| [au[1],au[0]]}
  end
  
  def self.dedications
    DEDICATIONS.collect{|d| [d[1], d[0]]}
  end

  def self.id_card_types
    ID_CARD_TYPES.collect{|c|[c[1],c[0]]}
  end
  
  def academic_unit
    ACADEMIC_UNITS[id_academic_unit]
  end

  def dedication
    DEDICATIONS[id_dedication]  
  end

end
